#ifndef __KEY_H__
#define __KEY_H__

#include "Config.h"

#define KEY0  P51
#define KEY1  P52
#define KEY2  P53
#define KEY3  P54

#define COL_NUM 	4

#define UP		1
#define DOWN	0

void Key_init();

void Key_scan();

extern void MK_on_keydown(u8 col);
extern void MK_on_keyup(u8 col);

#endif